package com.catering.controller;

import com.catering.service.CateringFeedbackService;
import com.catering.until.Log;
import com.catering.until.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


@RestController
@RequestMapping("/cateringFeedback")
public class CateringFeedbackController {

	@Autowired
	private CateringFeedbackService cateringFeedbackSevice;
	
	@RequestMapping("/select")
	public ResultData select(@RequestBody Map<String,String> map) {
		return cateringFeedbackSevice.select(map);
	}
	
	@Log(operation = "新增" , remark="【用户反馈】新增用户反馈" , type = "3")
	@RequestMapping("/insert")
	public ResultData insert(@RequestBody Map<String,String> map) {
		return cateringFeedbackSevice.insert(map);
	}
	
	@Log(operation = "修改" , remark="【用户反馈】修改用户反馈" , type = "3")
	@RequestMapping("/update")
	public ResultData update(@RequestBody Map<String,String> map) {
		return cateringFeedbackSevice.update(map);
	}
	
	@Log(operation = "删除" , remark="【用户反馈】删除用户反馈" , type = "3")
	@RequestMapping("/delete")
	public ResultData delete(@RequestBody Map<String,String> map) {
		return cateringFeedbackSevice.delete(map);
	}
	
}
